/*
 * @Author: [you name]
 * @Date: 2021-11-23 14:21:59
 * @LastEditors: [you name]
 * @LastEditTime: 2021-11-23 15:23:46
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \aaa\src\router\modules\commodity.ts
 */
import RouterObj from '@/permission/RouterObj'
export const commodityRouterList: RouterObj = {
  path: '/commodity',
  name: 'Commodity',
  component: () => import('@/views/Commodity/index.vue'),
  meta: {
    role: [['admin']],
    title: '商品管理',
    icon: 'fa-motorcycle',
    isShow: true,
    isOnRouter: false,
  },
  children: [
    {
      path: '/typeManage',
      name: 'TypeManage',
      component: () => import('@/views/Commodity/TypeManage.vue'),
      meta: {
        role: [['admin']],
        title: '类型管理',
        icon: 'fa-table',
        isShow: true,
        isOnRouter: false,
        roles: []
      },
    },
    {
      path: '/warehouseManage',
      name: 'WarehouseManage',
      component: () => import('@/views/Commodity/WarehouseManage.vue'),
      meta: {
        role: [['admin']],
        title: '库存管理',
        icon: 'fa-table',
        isShow: true,
        isOnRouter: false,
        roles: []
      },
    }
  ]
}